package com.niezhiliang.springboot.rabbitmq.common.service.impl;

import com.niezhiliang.springboot.rabbitmq.common.domain.BrokerMessageLog;
import com.niezhiliang.springboot.rabbitmq.common.mapper.BrokerMessageLogMapper;
import com.niezhiliang.springboot.rabbitmq.common.service.BrokerMessageLogService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Cody
 * @Description: //TODO
 * @date 2019/4/3 14:58
 */
@ConditionalOnClass(BrokerMessageLogMapper.class)
@Service
public class BrokerMessageLogServiceImpl implements BrokerMessageLogService
{

    @Resource
    private BrokerMessageLogMapper brokerMessageLogMapper;
    @Override
    public boolean updateByPrimaryKeySelective(BrokerMessageLog log)
    {
        return brokerMessageLogMapper.updateByPrimaryKeySelective(log)>0;
    }
}
